package com.hfut.jpoa.service;

import java.util.List;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.dto.NoticeDTO;
import com.hfut.jpoa.model.Notice;
import com.hfut.jpoa.service.exception.NoticeException;
import com.hfut.jpoa.service.exception.SysparaException;

public interface NoticeService
{
	/**
	 * 
	 * 根据条件查询页面列表
	 * 
	 * @param condition
	 * @return
	 * @throws SysparaException
	 */
	public ResultDto<Notice> queryInfoForPage(NoticeDTO condition)
	        throws NoticeException;


	/**
	 * 
	 * 编辑记录
	 * 
	 * @param record
	 * @throws NoticeException
	 */
	public void update(Notice record) throws NoticeException;

	/**
	 * 查询详情
	 * 
	 * @param syspara
	 * @return
	 * @throws SysparaException
	 */
	public Notice findInfo(Notice condition) throws NoticeException;

	/**
	 * 验证编码是否已经被使用
	 * 
	 * @param condition
	 * @return 存在返回true，失败返回false
	 * @throws NoticeException
	 */
	public boolean codeValidator(Notice condition) throws NoticeException;

	/**
	 * 查询列表
	 * 
	 * @param config
	 * @return
	 * @throws SysparaException
	 */
	public List<Notice> queryList(Notice condition) throws NoticeException;

	/**
	 * 保存报修信息
	 * 
	 * @param Notice
	 * @throws SysparaException
	 */
	public void saveNotice(Notice Notice) throws NoticeException;

	 

}
